package com.jzo2o.customer.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.mapper.AgencyCertificationAuditMapper;
import com.jzo2o.customer.model.domain.AgencyCertificationAudit;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditService;
import com.jzo2o.mysql.utils.PageUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 机构认证信息表 服务实现类
 * </p>
 *
 * @author itcast
 * @since 2023-09-06
 */
@Service
public class AgencyCertificationAuditServiceImpl extends ServiceImpl<AgencyCertificationAuditMapper, AgencyCertificationAudit> implements IAgencyCertificationAuditService {


    /**
     * 审核服务人员认证分页查询
     *
     * @param
     * @return
     */
    @Override
    public PageResult<AgencyCertificationAudit> pageQury(AgencyCertificationAuditPageQueryReqDTO agencyCertificationAudit) {
        Page<AgencyCertificationAudit> Page = PageUtils.parsePageQuery(agencyCertificationAudit, AgencyCertificationAudit.class);
        Page<AgencyCertificationAudit> agencyCertificationAuditPage = baseMapper.selectPage(Page, null);

        return PageUtils.toPage(agencyCertificationAuditPage, AgencyCertificationAudit.class);
    }
}
